package com.sukaiyi.giteeideaplugin.utils;

import com.intellij.notification.*;

public class NotificationUtils {

    private NotificationUtils() {

    }

    public static void notify(String message) {
        notify(message, NotificationType.INFORMATION);
    }

    public static void notify(String message, NotificationType type) {
        NotificationGroup group = new NotificationGroup("Gitee Support", NotificationDisplayType.TOOL_WINDOW, true);
        Notification notification = group.createNotification(String.format("Gitee Support: %s", message), type);
        Notifications.Bus.notify(notification);
    }
}
